package com.infoland.afanmall.model.shopCart.entity;

import android.view.View;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseViewHolder;
import com.daimajia.swipe.SwipeLayout;
import com.infoland.afanmall.R;

public class MyViewHolder extends BaseViewHolder {
    //单个item布局
    public SwipeLayout swipeLayout;
    //删除按钮区域
    public LinearLayout bottomDelete;
    public Button bottom_delete_bt;
    public LinearLayout item_cart_layout_ll;
    //多选按钮布局区域
    public LinearLayout checkBoxLayout;
    //多选按钮
    public CheckBox checkBox;
    //商品图片
    public ImageView cartGoodsImg;
    //商品标题
    public TextView cartGoodsName;
    //商品规格
    public TextView cartGoodsSv;
    //商品单价
    public TextView cartGoodsPrice;
    public TextView cart_goods_price2;
    //减号
    public TextView cartSubtraction;
    //加号
    public TextView cartAddition;
    //商品数量
    public EditText cartGoodsCount;

    public MyViewHolder(View itemView) {
        super(itemView);
        //整个item布局
        item_cart_layout_ll = itemView.findViewById(R.id.item_cart_layout_ll);
        swipeLayout = itemView.findViewById(R.id.itemview_swipe);
        //多选点击布局区域
        checkBoxLayout = itemView.findViewById(R.id.check_box_layout);
        //滑动后出现的按钮
        bottomDelete = itemView.findViewById(R.id.bottom_delete);
        bottom_delete_bt = itemView.findViewById(R.id.bottom_delete_bt);
        //多选按钮
        checkBox = itemView.findViewById(R.id.check_box);
        //商品图片
        cartGoodsImg = itemView.findViewById(R.id.cart_goods_img);
        //商品标题
        cartGoodsName = itemView.findViewById(R.id.cart_goods_name);
        //商品规格
        cartGoodsSv = itemView.findViewById(R.id.cart_goods_sv);
        //商品单价
        cartGoodsPrice = itemView.findViewById(R.id.cart_goods_price);
        cart_goods_price2 = itemView.findViewById(R.id.cart_goods_price2);

        //减号
        cartSubtraction = itemView.findViewById(R.id.cart_subtraction);
        //加号
        cartAddition = itemView.findViewById(R.id.cart_addition);
        //商品数量
        cartGoodsCount = itemView.findViewById(R.id.cart_goods_count);
    }


}
